package myschool.myshchool15.mystudent;

import java.util.Scanner;

public class ZhangHaoScore {
    public static void main(String[] args) {
        //输出控制台
        Scanner input = new Scanner(System.in);
        //输入成绩
        System.out.print("王浩的JAVA成绩是：");
        int javaScore = input.nextInt();
        System.out.print("王浩的STB成绩是：");
        int stbScore = input.nextInt();
        System.out.print("王浩的SQL成绩是：");
        int sqlScore = input.nextInt();
        int diffen;
        //分数差
        diffen = javaScore - sqlScore ;
        //Java和SQL成绩差
        double avg;
        //平均分
        avg = (stbScore+javaScore+sqlScore)/3;
        //计算平均分
        System.out.println("3门课的平均数是："+avg);
        System.out.println("Java和SQL成绩差是："+diffen);

    }

}
